package com.qingcheng.config;

import com.qingcheng.util.IdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName IdWorkConfig
 * @Description
 * @Author Simon
 * @Date 2020/8/12 20:19
 * @Version 1.0
 **/
@Configuration
public class IdWorkConfig {

    @Bean
    public IdWorker idWorker() {
        return new IdWorker(1L, 1L);
    }
}

